package com.example.cloudtrade;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.google.android.material.bottomsheet.BottomSheetDialogFragment;


public class JinbiBjBottomSheetFragment extends BottomSheetDialogFragment {

    public static JinbiBjBottomSheetFragment newInstance() {
        return new JinbiBjBottomSheetFragment();
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.jinbi_bj, container, false);
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        // 添加关闭按钮逻辑（可选）
        Button closeButton = view.findViewById(R.id.back_button);
        closeButton.setOnClickListener(v -> dismissAllowingStateLoss());
    }
}